x86/mm: re-arrange type check around _get_page_type()'s TLB flush
authorJan Beulich <jbeulich@suse.com>
Mon, 15 Aug 2022 06:53:11 +0000 (08:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 15 Aug 2022 06:53:11 +0000 (08:53 +0200)
commit8eb15275cd5d945acbc0f70a358255dea94117cf
tree5b1609e50efd1a4e656a6bb51bd7374f91d4b0e9
parent3dc26edbb5417d90d32df6aa70d7c4187dd9966e
x86/mm: re-arrange type check around _get_page_type()'s TLB flush

Checks dependent on only d and x can be pulled out, thus allowing to
skip the flush mask calculation.

(Also-)Suggested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c